<template>
    <div>子组件：</div>
    <hr>
    <button @click="uptadeMoney(500)">单机按钮增加资金{{ money }}</button>
</template>
<script setup>
import { inject } from 'vue';
let money = inject('money');
let uptadeMoney = inject('uptadeMoney');
</script>